
<?php include_once 'common/header.php';  ?>
<?php 
	$typearr = array(1=>'首页',2=>'注册',3=>'活动注册');
?>
<!-- admin_main -->
<div class="admin_main">
	<!-- Admin_top end -->
	<?php include_once 'common/system_left.php';  ?>
	<!-- Admin_Left End -->
	<div class="admin_right">
	<div class="admin_right_title"><strong>系统管理</strong> >> 访问日志列表</div>

		<div class="admin_right_con" style="width: 98%">
		<?php if(isset($admin['type_id']) && $admin['type_id'] !=1){?>
			<div class="Prompt">
			    <div class="Prompt_top"></div>
			  	<div class="Prompt_con">
				    <dl>
				      <dt>提示信息</dt>
				      <dd><span class="Prompt_x"></span></dd>
				      <dd><h2 style="color:red">对不起，权限不足</h2></dd>
				    </dl>
			    </div>
			    <div class="Prompt_btm"></div>
		  </div>
			<?php }else{?>
			
			<table border="0" cellspacing="1" cellpadding="0" bgcolor="#cfe6f4" width="100%">
			  <tr style="color:#0068b7;">
				<td height="35" align="center" valign="middle" bgcolor="#F1F1F1"><strong>ID</strong></td>
				<td height="35" align="center" valign="middle" bgcolor="#F1F1F1"><strong>来源</strong></td>
				<td height="35" align="center" valign="middle" bgcolor="#F1F1F1"><strong>IP</strong></td>
				<td height="35" align="center" valign="middle" bgcolor="#F1F1F1"><strong>访问时间</strong></td>
			  </tr>
			  <?php foreach($log_list as $info){?>
			  <tr>
				<td height="35" align="center" valign="middle" bgcolor="#FFFFFF"><?php echo $info['id'];?></td>
				<td height="35" align="center" valign="middle" bgcolor="#FFFFFF"><?php echo $typearr[$info['type']];?></td>
				<td height="35" align="center" valign="middle" bgcolor="#FFFFFF"><?php echo $info['ip'];?></td>
				<td height="35" align="center" valign="middle" bgcolor="#FFFFFF"><?php echo date('Y-m-d H:i:s',$info['add_time']);?></td>
			  </tr>
			  <?php }?>
			  <tr>
			  	<td  height="35" colspan="4" align="center" class="page" bgcolor="#FFFFFF"><?php echo $this->pagination->create_links();?>  共有<?php echo $log_count;?>条数据</td>
			  </tr>
			</table>
			 <?php }?>
			</div>
	</div>
<!-- Admin_Right End -->
</div>
<!-- admin_main end -->

</body>
</html>
